package com.sean.framework;

import android.app.Application;
import android.util.Log;

import com.sean.framework.service.AppService;

public class AppApplication extends Application {
	
	public static final String TAG = "AppApplication";
	
	private AppService mAppService;

	@Override
	public void onCreate() {
		Log.i(TAG, "Start application >> onCreate");
		super.onCreate();
	}
	
	@Override
	public void onTerminate() {
		Log.i(TAG, "Terminate application >> onTerminate");
		super.onTerminate();
	}

	@Override
	public void onLowMemory() {
		Log.i(TAG, "LowMemory of application >> onLowMemory");
		super.onLowMemory();
	}
	
	public AppService getAppService() {
		if(mAppService == null) {
			mAppService = new AppService();
		}
		return mAppService;
	}
}
